package com.tanhua.admin.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author げっしょく
 * @date 2021/11/5
 */
@Component
public class wuhu {
/*    @Autowired
    private AnalysisService analysisService;*/

    //@Scheduled(cron = "0/10 * * * * ?")
    public void analysis () {
        //业务逻辑
        String time = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
        System.out.println("当前时间=" + time);
    }
}
